p $tmp=0
while $tmp<$cpu_number
  eval "tvariable $per_cpu_c_%d",$tmp
  eval "tvariable $per_cpu_cy_%d",$tmp
  eval "tvariable $per_cpu_tmp_0_%d",$tmp
  p $tmp=$tmp+1
end

#trace e1000_receive_skb
#trace netif_receive_skb
#trace __netif_receive_skb
#trace get_rps_cpu
#trace e1000_clean_rx_irq
#list netif_receive_skb
#trace 2757
#list e1000_clean_rx_irq
#trace 1117
#list e1000_clean_rx_irq
#trace 1200
#list e1000_clean_rx_irq
#trace 1200
#list e1000_clean_rx_irq
#trace 1203
#list e1000_clean_rx_irq
#trace 1208
#list e1000_receive_skb
#trace 760
#list e1000_receive_skb
#trace 760

#list e1000_receive_skb
#trace 760

#list __netif_receive_skb
#trace 2691

#trace *0xffffffff812b7d2c

trace ip_rcv

 commands
    teval $per_cpu_c_0=$per_cpu_c_0+1
    teval $per_cpu_tmp_0_0=$clock
  end

#list e1000_receive_skb
#trace 822 if ($per_cpu_c_0>100)
#list netif_receive_skb
#trace 2765  if ($per_cpu_c_0>100)
#list __netif_receive_skb
#trace 2732  if ($per_cpu_c_0>100)
#list get_rps_cpu
#trace 2268  if ($per_cpu_c_0>100)
#list e1000_clean_rx_irq
#trace 1239 if ($per_cpu_c_0>100)
#list netif_receive_skb
#trace 2758 if ($per_cpu_c_0>100)
#list e1000_clean_rx_irq
#trace 1144 if ($per_cpu_c_0>100)
#list e1000_clean_rx_irq
#trace 1211 if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)
#list e1000_clean_rx_irq
#trace 1201 if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)
#list e1000_clean_rx_irq
#trace 1207 if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)
#list e1000_clean_rx_irq
#trace 1211 if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)
#list e1000_receive_skb
#trace 749 if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)

#list __netif_receive_skb
#trace 2692 if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)

#trace *0xffffffff812b7d2c if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)

#list __netif_receive_skb
#trace 2721 if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)

list ip_rcv
trace 446 if ($per_cpu_c_0>100 && $per_cpu_tmp_0_0 != 0)
  commands
    teval $per_cpu_cy_0=$clock-$per_cpu_tmp_0_0+$per_cpu_cy_0
    teval $per_cpu_tmp_0_0=0
  end

define showall
p $per_cpu_cy_0/($per_cpu_c_0-100)
end

#define showall
#p $tmp=0
#p $all1=0
#while $tmp<$cpu_number
#  eval "p $per_cpu_cy_%d/($per_cpu_c_%d-100)",$tmp,$tmp

#  eval "p $all1=$all1+$per_cpu_cy_%d/($per_cpu_c_%d-100)",$tmp,$tmp

#  p $tmp=$tmp+1
#end
#p $all1/$cpu_number
#end
